* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    display: flex;
}

.sidebar {
    width: 200px;
    background-color: #2c3e50;
    color: white;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 20px;
    background-color: #34495e;
    text-align: center;
}

.sidebar-menu {
    list-style: none;
    padding: 20px;
}

.sidebar-menu li {
    padding: 10px 0;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease;
}

.sidebar-menu li:hover {
    background-color: #34495e;
}

.sidebar-menu .active {
    background-color: #16a085;
}

.sidebar-menu .submenu {
    list-style: none;
    padding-left: 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.sidebar-menu .submenu li {
    padding: 5px 0;
}

.sidebar-menu .has-submenu.active .submenu {
    max-height: 100px; /* 根据需要调整 */
    opacity: 1;
}

.main-content {
    flex: 1;
    padding: 20px;
}

.header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.header-left button,
.header-right button {
    background-color: #1abc9c;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    margin-right: 10px;
}

.header-right span {
    margin-right: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th, table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

table th {
    background-color: #f2f2f2;
}

button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

button:last-child {
    background-color: #e74c3c;
}



